<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateUserWithdrawsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('user_withdraws', function(Blueprint $table)
		{
			$table->integer('id', true);
			$table->string('bank_code', 100)->nullable();
			$table->string('bank_type', 20)->nullable();
			$table->string('result_message')->nullable()->comment('拒绝理由');
			$table->string('status', 30)->nullable()->comment('0 申请中 1 已打款  2 拒绝');
			$table->integer('user_id')->nullable();
			$table->timestamps();
			$table->decimal('price', 10)->nullable()->comment('提现金额 单位为分');
			$table->string('user_name', 50)->nullable()->comment('开户名');
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('user_withdraws');
	}

}
